#pragma once
#include "TString.h"
#include "Control.h"
class TabPanel : public Control
{
public:
	TabPanel();
	~TabPanel();
	virtual bool OnInit();
	Control& AddTab(TString title);
	virtual void Draw();
	void ParseXmlElement(TiXmlElement* ele);
	void ParseAttribute(TiXmlElement* ele);
private:
	std::map<std::string, Control> mpPanel;
	std::string activeKey;
};